home *** CD-ROM | disk | FTP | other *** search
- Path: castle.nando.net!news
- From: khelmink@nando.net (Keith Helmink)
- Newsgroups: comp.lang.c++,comp.lang.c
- Subject: Re: HELP!: Error when trying to use cout in MSVC++ 4.0!
- Date: Sun, 24 Mar 1996 13:17:04 GMT
- Organization: The Kelton Group, Inc.
- Message-ID: <4j3ia6$p9e@castle.nando.net>
- References: <4i5kpd$eic@mirv.unsw.edu.au> <13MAR199607405255@erich.triumf.ca>
- Reply-To: khelmink@nando.net
- NNTP-Posting-Host: grail918.nando.net
- X-Newsreader: Forte Free Agent 1.0.82
-
- In article <4i5kpd$eic@mirv.unsw.edu.au>, s2139589@cse.unsw.edu.au
- (CC) writes...
-
- >>Hi,
- >>
- >>I am having trouble compiling a very simple program consisting of one
- >>line of code in main(). I am using Microsoft Visual C++ Version 4.0 on
- >>WIN95. Basically I am trying to use cout to print a word, however the
- >>compiler keeps generating the following error:
- >>
- >>E:\Labs\lab1.c(4) : error C2065: 'cout' : undeclared identifier
- >>E:\Labs\lab1.c(4) : error C2297: '<<' : bad right operand
- >>Error executing cl.exe.
- >>lab1.obj - 2 error(s), 0 warning(s)
-
- I got similar errors with the Watcom compiler when I spelled:
-
- void main()
-
- as
-
- void Main()
-
- hope this helps!
-
- keith
-
-
-
-
-
- keith
-
- khelmink@nando.net
-
-